#include "console_output_strategy.h"
#include "gtest/gtest.h"

namespace Base {
namespace SystemLog {
namespace {
constexpr const char* TEST_MESSAGE = "Hello, Console Output!\n";
} // namespace

class ConsoleOutputStrategyTest : public testing::Test {
public:
    static void SetUpTestCase(void);
    static void TearDownTestCase(void);
    void SetUp();
    void TearDown();
};

void ConsoleOutputStrategyTest::SetUpTestCase(void)
{}

void ConsoleOutputStrategyTest::TearDownTestCase(void)
{}

void ConsoleOutputStrategyTest::SetUp(void)
{}

void ConsoleOutputStrategyTest::TearDown(void)
{}

/**
 * @tc.name: ConsoleOutputStrategyTest_001
 * @tc.desc: verify Write function.
 * @tc.type: FUNC
 */
TEST_F(ConsoleOutputStrategyTest, ConsoleOutputStrategyTest_001)
{
    ConsoleOutputStrategy console;
    ASSERT_EQ(console.Write(TEST_MESSAGE, strlen(TEST_MESSAGE)), ERR_OK);
}
} // namespace SystemLog
} // namespace Base
